const jsonConfig = {
  root: {
    type: "el-tabs",
    value: "baseConfig",
    isContainer: true,
    props: {
      type: "card",
      options: {
        baseConfig: {
          icon: "el-icon-eleme",
          title: "基础配置",
          content: {
            name: {
              type: "el-input",
              title: "活动标题",
              value: "我是活动标题",
              props: {
                type: "text",
                maxlength: 10,
                showWordLimit: true,
              },
              rules: [
                {
                  required: true,
                  message: "请填写活动标题",
                },
              ],
            },
            activityRules: {
              type: "el-input",
              title: "活动规则",
              value: "999",
              props: {
                type: "text",
                maxlength: 100,
                showWordLimit: true,
              },
              rules: [
                {
                  required: true,
                  message: "请填写活动规则",
                },
              ],
            },
          },
        },
        playConfig: {
          icon: "el-icon-eleme",
          title: "玩法配置",
          content: {
            "group3 (copy)": {
              type: "pu-line",
              props: {
                title: "规则配置",
              },
            },
            districtLimit: {
              type: "el-radio-group",
              title: "地区限制",
              value: 1,
              props: {
                options: [
                  {
                    value: 1,
                    label: "不限制",
                  },
                  {
                    value: 2,
                    label: "指定地区可参与",
                  },
                  {
                    value: 3,
                    label: "指定地区不可参与",
                  },
                ],
              },
            },
            isSupportCredits: {
              type: "el-radio-group",
              title: "积分支持",
              // disabledMode: [2],
              value: 1,
              props: {
                options: [
                  {
                    value: 1,
                    label: "支持",
                  },
                  {
                    value: 0,
                    label: "不支持",
                  },
                ],
              },
            },
            joinCredits: {
              type: "el-input",
              title: "参与积分",
              value: "",
              slotAppend: "积分/次",
              dependence: {
                key: "isSupportCredits",
                value: [1],
              },
              props: {
                type: "text",
                maxlength: 6,
                placeholder: "请填写活动单次参与需消耗积分数",
              },
              rules: [
                {
                  required: true,
                  message: "请填写参与活动所需消耗积分",
                },
                {
                  pattern: "^[1-9][0-9]*$",
                  message: "请填写1-999999之间的整数",
                },
              ],
            },
          },
        },
        shareConfig: {
          icon: "el-icon-eleme",
          title: "分享配置",
          content: {
            group5: {
              type: "pu-line",
              props: {
                title: "分享配置",
              },
            },
          },
        },
        homeConfig: {
          icon: "el-icon-eleme",
          title: "界面配置",
          content: {},
        },
      },
    },
  },
};
export default jsonConfig;

export const PU_IMAGE_JSON2 = {
  compName: {
    type: "a-input",
    label: "组件标题",
    value: "图片组件",
    props: {
      rules: [],
    },
  },
  ActiveTab: {
    type: "a-tabs",
    isContainer: true,
    value: "mainConfig",
    props: {
      options: {
        mainConfig: {
          title: "内容配置",
          content: {
            activeConfig: {
              type: "a-tabs",
              value: "config1",
              isContainer: true,
              props: {
                options: {
                  config1: {
                    title: "",
                    content: {
                      peopleRule: {
                        type: "a-input",
                        label: "人群",
                        value: "全部",
                      },
                      peopleId: {
                        type: "a-input",
                        label: "人群ID",
                        value: "id1",
                      },
                    },
                  },
                },
              },
            },
          },
        },
        styleConfig: {
          title: "样式配置",
          content: {
            tamplateType: {
              type: "a-input",
              label: "模版",
              value: "red",
            },
            backgroundColor: {
              type: "a-input",
              label: "背景",
              value: "red",
            },
          },
        },
      },
    },
  },
};
